import { request } from 'umi';

// 添加标签
export function getTags(id: string, label: string, value: string) {
  return request(`/api/tag/${id}`, {
    method: 'PATCH',
    data: { label, value },
  });
}
// 新增标签
export function putTags(label: string, value: string) {
  return request(`/api/tag`, {
    method: 'POST',
    data: { label, value },
  });
}
// 删除标签
export function delTags(id: string) {
  return request(`/api/tag/${id}`, {
    method: 'DELETE',
  });
}
